<template>
  <div class="FlymeElipsis">
    <ellipsis :length="length" tooltip :lines="4">
      {{text}}
    </ellipsis>
  </div>
</template>
<script>
  import Ellipsis from '../../Ellipsis/Ellipsis'
  export default {
    name:'fElipsis',
    props: {
      text: {
        type: [String, Array,Number],
        default: ''
      },
      length:{
        type: Number,
        default: 20
      }
    },
    components: { Ellipsis },
    data() {
      return {
        fileList: []
      }
    },
    watch: {},
    methods: {
      copyClick(e) {
        this.$copyText(e.target.innerText).then(
          (e) => {
            this.$message.success("复制成功!")
          }
        )
      },
    },
    created() {

    }
  }
</script>

